package com.ljfiction.book.manage;

import android.os.Environment;

import java.io.File;

/**
 * Created by Administrator on 2016/6/20.
 */
public class FileManage {
    public static String ImagePath= Environment.getExternalStorageDirectory()+"/ljfiction";//工程本地图片文件夹路径
    public static String Cache= Environment.getExternalStorageDirectory()+"/ljfiction/cache";//缓存

    public static void init(){
        fileInit();
    }
    public static void fileInit(){
        File file =  new File(FileManage.ImagePath);
        if (!file.exists()) {
            file.mkdir();
        }
        File file1 =  new File(FileManage.Cache);
        if (!file1.exists()) {
            file1.mkdir();
        }
    }
}
